//
//  SoplarLoginRequest.m
//  URLSessionTest
//
//  Created by mac on 2017/7/7.
//  Copyright © 2017年 yyb. All rights reserved.
//

#import "SoplarLoginRequest.h"

@implementation SoplarLoginRequest

- (NSString *)requestUrl {
    return @"http://192.168.222.220:8080/moto/app/login.do";
}

//- (NSString *)certificateName {
//    return @"ca";
//}

- (RequestMethod)requestMethod {
    return RequestMethodPOST;
}

- (RequestSerializerType)requestSerializerType {
    return RequestSerializerTypeJSON;
}

- (NSDictionary *)requestParams {
    NSMutableDictionary *params = [NSMutableDictionary dictionary];
    NSDictionary *header = @{
                             @"cmd":@"login",
                             @"msgId":@"123456789",
                             };
    NSDictionary *body = @{
                           @"phone":@"13537899336",
                           @"password":@"12345678",
                           };
    params[@"header"] = header;
    params[@"body"] = body;
    return params;
}

@end
